package com.geezdata.cps.sdk3rd.kaola.domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单内商品信息
 * @author jxshen
 *
 */
public class KaolaOrderSearchSkuInfo implements Serializable {

    private static final long serialVersionUID = 9200825914976317202L;

    /**
     * SkuId——考拉接口返回
     */
    private String sku_key;
    
    /**
     * 商品名称——考拉接口返回
     */
    private String product_name;
    
    /**
     * 订单原始单价——考拉接口返回
     */
    private BigDecimal origin_price;
    
    /**
     * 购买数量——考拉接口返回
     */
    private Integer count;
    
    /**
     * 实付总价——考拉接口返回
     */
    private BigDecimal real_totle_price;
    
    /**
     * 活动优惠总金额——考拉接口返回
     */
    private BigDecimal activity_totle_amount;
    
    /**
     * 货号——考拉接口返回
     */
    private String goods_no;
    
    /**
     * 优惠券优惠总金额——考拉接口返回
     */
    private BigDecimal coupon_totle_amount;
    
    /**
     * 商品条形码——考拉接口返回
     */
    private String barcode;
    
    /**
     * 无说明——考拉接口返回
     */
    private String first_unit;
    
    /**
     * 无说明——考拉接口返回
     */
    private BigDecimal first_unit_num;
    
    /**
     * 无说明——考拉接口返回
     */
    private String hs_key;
    
    /**
     * 无说明——考拉接口返回
     */
    private Integer is_gift;
    
    /**
     * 无说明——考拉接口返回
     */
    private String item_key;
    
    /**
     * 无说明——考拉接口返回
     */
    private String second_unit;
    
    /**
     * 无说明——考拉接口返回
     */
    private BigDecimal second_unit_num;
    
    /**
     * 无说明——考拉接口返回
     */
    private String warehouse_code;
    
    /**
     * 无说明——考拉接口返回
     */
    private String warehouse_name;

    public KaolaOrderSearchSkuInfo() {}

    @Override
    public String toString() {
        return "KaolaOrderSku [sku_key=" + sku_key + ", product_name=" + product_name + ", origin_price=" + origin_price
                + ", count=" + count + ", real_totle_price=" + real_totle_price + ", activity_totle_amount="
                + activity_totle_amount + ", goods_no=" + goods_no + ", coupon_totle_amount=" + coupon_totle_amount
                + ", barcode=" + barcode + ", first_unit=" + first_unit + ", first_unit_num=" + first_unit_num
                + ", hs_key=" + hs_key + ", is_gift=" + is_gift + ", item_key=" + item_key + ", second_unit="
                + second_unit + ", second_unit_num=" + second_unit_num + ", warehouse_code=" + warehouse_code
                + ", warehouse_name=" + warehouse_name + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((activity_totle_amount == null) ? 0 : activity_totle_amount.hashCode());
        result = prime * result + ((barcode == null) ? 0 : barcode.hashCode());
        result = prime * result + ((count == null) ? 0 : count.hashCode());
        result = prime * result + ((coupon_totle_amount == null) ? 0 : coupon_totle_amount.hashCode());
        result = prime * result + ((first_unit == null) ? 0 : first_unit.hashCode());
        result = prime * result + ((first_unit_num == null) ? 0 : first_unit_num.hashCode());
        result = prime * result + ((goods_no == null) ? 0 : goods_no.hashCode());
        result = prime * result + ((hs_key == null) ? 0 : hs_key.hashCode());
        result = prime * result + ((is_gift == null) ? 0 : is_gift.hashCode());
        result = prime * result + ((item_key == null) ? 0 : item_key.hashCode());
        result = prime * result + ((origin_price == null) ? 0 : origin_price.hashCode());
        result = prime * result + ((product_name == null) ? 0 : product_name.hashCode());
        result = prime * result + ((real_totle_price == null) ? 0 : real_totle_price.hashCode());
        result = prime * result + ((second_unit == null) ? 0 : second_unit.hashCode());
        result = prime * result + ((second_unit_num == null) ? 0 : second_unit_num.hashCode());
        result = prime * result + ((sku_key == null) ? 0 : sku_key.hashCode());
        result = prime * result + ((warehouse_code == null) ? 0 : warehouse_code.hashCode());
        result = prime * result + ((warehouse_name == null) ? 0 : warehouse_name.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        KaolaOrderSearchSkuInfo other = (KaolaOrderSearchSkuInfo) obj;
        if (activity_totle_amount == null) {
            if (other.activity_totle_amount != null)
                return false;
        } else if (!activity_totle_amount.equals(other.activity_totle_amount))
            return false;
        if (barcode == null) {
            if (other.barcode != null)
                return false;
        } else if (!barcode.equals(other.barcode))
            return false;
        if (count == null) {
            if (other.count != null)
                return false;
        } else if (!count.equals(other.count))
            return false;
        if (coupon_totle_amount == null) {
            if (other.coupon_totle_amount != null)
                return false;
        } else if (!coupon_totle_amount.equals(other.coupon_totle_amount))
            return false;
        if (first_unit == null) {
            if (other.first_unit != null)
                return false;
        } else if (!first_unit.equals(other.first_unit))
            return false;
        if (first_unit_num == null) {
            if (other.first_unit_num != null)
                return false;
        } else if (!first_unit_num.equals(other.first_unit_num))
            return false;
        if (goods_no == null) {
            if (other.goods_no != null)
                return false;
        } else if (!goods_no.equals(other.goods_no))
            return false;
        if (hs_key == null) {
            if (other.hs_key != null)
                return false;
        } else if (!hs_key.equals(other.hs_key))
            return false;
        if (is_gift == null) {
            if (other.is_gift != null)
                return false;
        } else if (!is_gift.equals(other.is_gift))
            return false;
        if (item_key == null) {
            if (other.item_key != null)
                return false;
        } else if (!item_key.equals(other.item_key))
            return false;
        if (origin_price == null) {
            if (other.origin_price != null)
                return false;
        } else if (!origin_price.equals(other.origin_price))
            return false;
        if (product_name == null) {
            if (other.product_name != null)
                return false;
        } else if (!product_name.equals(other.product_name))
            return false;
        if (real_totle_price == null) {
            if (other.real_totle_price != null)
                return false;
        } else if (!real_totle_price.equals(other.real_totle_price))
            return false;
        if (second_unit == null) {
            if (other.second_unit != null)
                return false;
        } else if (!second_unit.equals(other.second_unit))
            return false;
        if (second_unit_num == null) {
            if (other.second_unit_num != null)
                return false;
        } else if (!second_unit_num.equals(other.second_unit_num))
            return false;
        if (sku_key == null) {
            if (other.sku_key != null)
                return false;
        } else if (!sku_key.equals(other.sku_key))
            return false;
        if (warehouse_code == null) {
            if (other.warehouse_code != null)
                return false;
        } else if (!warehouse_code.equals(other.warehouse_code))
            return false;
        if (warehouse_name == null) {
            if (other.warehouse_name != null)
                return false;
        } else if (!warehouse_name.equals(other.warehouse_name))
            return false;
        return true;
    }

    public String getSku_key() {
        return sku_key;
    }

    public void setSku_key(String sku_key) {
        this.sku_key = sku_key;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public BigDecimal getOrigin_price() {
        return origin_price;
    }

    public void setOrigin_price(BigDecimal origin_price) {
        this.origin_price = origin_price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public BigDecimal getReal_totle_price() {
        return real_totle_price;
    }

    public void setReal_totle_price(BigDecimal real_totle_price) {
        this.real_totle_price = real_totle_price;
    }

    public BigDecimal getActivity_totle_amount() {
        return activity_totle_amount;
    }

    public void setActivity_totle_amount(BigDecimal activity_totle_amount) {
        this.activity_totle_amount = activity_totle_amount;
    }

    public String getGoods_no() {
        return goods_no;
    }

    public void setGoods_no(String goods_no) {
        this.goods_no = goods_no;
    }

    public BigDecimal getCoupon_totle_amount() {
        return coupon_totle_amount;
    }

    public void setCoupon_totle_amount(BigDecimal coupon_totle_amount) {
        this.coupon_totle_amount = coupon_totle_amount;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public String getFirst_unit() {
        return first_unit;
    }

    public void setFirst_unit(String first_unit) {
        this.first_unit = first_unit;
    }

    public BigDecimal getFirst_unit_num() {
        return first_unit_num;
    }

    public void setFirst_unit_num(BigDecimal first_unit_num) {
        this.first_unit_num = first_unit_num;
    }

    public String getHs_key() {
        return hs_key;
    }

    public void setHs_key(String hs_key) {
        this.hs_key = hs_key;
    }

    public Integer getIs_gift() {
        return is_gift;
    }

    public void setIs_gift(Integer is_gift) {
        this.is_gift = is_gift;
    }

    public String getItem_key() {
        return item_key;
    }

    public void setItem_key(String item_key) {
        this.item_key = item_key;
    }

    public String getSecond_unit() {
        return second_unit;
    }

    public void setSecond_unit(String second_unit) {
        this.second_unit = second_unit;
    }

    public BigDecimal getSecond_unit_num() {
        return second_unit_num;
    }

    public void setSecond_unit_num(BigDecimal second_unit_num) {
        this.second_unit_num = second_unit_num;
    }

    public String getWarehouse_code() {
        return warehouse_code;
    }

    public void setWarehouse_code(String warehouse_code) {
        this.warehouse_code = warehouse_code;
    }

    public String getWarehouse_name() {
        return warehouse_name;
    }

    public void setWarehouse_name(String warehouse_name) {
        this.warehouse_name = warehouse_name;
    }
    
    
}
